import requests
from lxml import etree

# url = 'http://www.pbc.gov.cn/rmyh/108976/109428/index.html'
# response = requests.get(url)
# print(response.content.decode('utf-8'))

# url = 'http://wzdt.pbc.gov.cn:8080/llChart1.jsp'
# response = requests.get(url)
# print(response.text)

url = 'http://wzdt.pbc.gov.cn:8080/flex-xml/flex_xml_1.xml'
response = requests.get(url)
tree = etree.XML(response.content)
huilvs = tree.xpath('//hlvalue/text()')
datetimes = tree.xpath('//date/text()')
if len(huilvs) == len(datetimes):
    for huilv, datetime in zip(huilvs, datetimes):
        print(huilv, datetime)